
	private Logger LOGGER = LoggerFactory.getLogger(${entityName}ServiceImpl.class);

	@Autowired
	private ${entityName}Dao ${entityNameLower}Dao;

    /*
    @Override
    PageResult<${entityName}Dto> select${entityName}(${entityName}Vo ${entityNameLower}Vo, Page page) {
        ${entityName}Query ${entityNameLower}Query = new ${entityName}Query();
        PageResult<${entityName}Dto> result = new PageResult<>();

        // TODO 设置查询信息
        ${entityNameLower}Query.setCreator(userId);
        ${entityNameLower}Query.setPage(page);

        // 设置查询条数
        int count = ${entityNameLower}Dao.select${entityName}Count(${entityNameLower}Query);
        result.setTotalCount(count);

        List<${entityName}Dto> list = new ArrayList<>();
        if (count > 0) {
            list = ${entityNameLower}Dao.select${entityName}(${entityNameLower}Query);

            // 返回值信息缺少时，赋值默认值
            for(CommissionDto dto : list) {
                // TODO 设置返回值默认信息
                //if(StrUtil.isEmpty(dto.getBorrowerPhone())) { dto.setBorrowerPhone(""); }
                //if(StrUtil.isEmpty(dto.getBuildArea())) { dto.setBuildArea(new BigDecimal("0.00")); }
            }
        }

        result.setData(list);
        result.setCode(ResponseCodeEnum.SUCCESS.getCode());
        result.setMess(ResponseCodeEnum.SUCCESS.getMessage());
        result.setSuccess(true);
        return result;
    }
    */

    /**
     * 插入数据
     **/
    @Override
    public ${entityName} selectById(Integer id) {
        ${entityName}Query query = new ${entityName}Query();
        query.setId(id);

        List<${entityName}Dto> list = ${entityNameLower}Dao.selectByParam(query);

        return StrUtil.isEmpty(list) ? null : list.get(0);
    }
